<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

<div class="content">

    <?php
    $userTypes = [1 => '个人', 2 => '企业', 3 => '管理员', 4 => '系统', 5 => '游客'];
    $source = [1 => '小程序', 2 => '企业端', 3 => '后台', 4 => '定时任务', 5 => '队列进程', 6 => '命令行', 7 => '通用接口'];
    $status = [1 => '未通知', 2 => '已通知', 3 => '已处理'];
    $type = [1 => '系统捕获', 2 => '客户端上报'];
    $reasonType = [1 => '系统类', 2 => '用户类', 3 => '第三方', 4 => '客户端异常', 5 => '其他未捕获异常',];
    ?>

    <ul>
        <li><span>类 型:</span> {{$type[$error->type]}}</li>
        <li><span>来 源:</span> {{$source[$error->source]}}</li>
        <li><span>状 态:</span> {{$status[$error->status]}}</li>
        <li><span>分 类:</span> {{$reasonType[$error->reason_type]}}</li>
        <li><span>用户类型:</span> {{$userTypes[$error['user_type']]}}</li>
        <li><span>用户姓名:</span> {{$error->user_name}}</li>
        <li><span>用户电话:</span> {{$error->user_mobile}}</li>
        <li><span>用户IP:</span> {{$error->user_ip}}</li>
        <li><span>用户代理:</span> {{$error->user_agent}}</li>
        <li><span>创建时间:</span> {{$error->created_at}}</li>
        <li><span>详细:</span>
            <pre>{{json_encode(json_decode($error->content),JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE)}}</pre>
        </li>
    </ul>
</div>
<div class="footer">
    合薪科技
</div>
</body>
<style>
    * {
        margin: 0;
        padding: 0;
    }


    .header {
        width: 100%;
        height: 70px;
        background-color: #eee;
        font-size: 30px;
        color: #000;
        text-align: center;
        line-height: 70px;
    }


    .content {
        padding: 40px 30px;
        font-size: 16px;
        box-sizing: border-box;
    }

    .content > ul li {
        margin: 10px 0;
        list-style-type: none;
        line-height: 26px;
    }

    .content > ul li span {
        margin-right: 20px;
        display: inline-block;
    }

    .footer {
        width: 100%;
        height: 60px;
        background-color: #eee;
        font-size: 20px;
        color: #999;
        text-align: center;
        line-height: 60px;
        margin-top: 30px;
    }
</style>
</html>